tag @s remove using_teleportDevice
scoreboard players reset @s teleportDeviceTime

scoreboard players set #teleportDeviceLoop temp 20

execute anchored eyes positioned ^ ^ ^ run function vs:item/teleport_device/teleport
execute at @s run playsound minecraft:entity.firework_rocket.large_blast master @a ~ ~ ~ 1.5 1.0
execute at @s run playsound minecraft:entity.firework_rocket.large_blast master @a ~ ~ ~ 1.5 1.0
execute at @s run particle flash ~ ~ ~

scoreboard players reset #teleportDeviceLoop temp